package com.aop.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {
	@Autowired
	private JdbcTemplate jdbcTemplate;
	public void addUser(String name,int age){
		jdbcTemplate.update("insert into  test_user (name,age) values(?,?);", name, age);	
	}

}
